﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Questionnaire.Models
{
    /// <summary>
    /// 答题者
    /// </summary>
    [Table("tb_replier")]
    public class Replier
    {
        /// <summary>
        /// 标识
        /// </summary>
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }
        /// <summary>
        /// 问卷标识
        /// </summary>
        [Display(Name = "问卷标识")]
        public long PaperId { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [Display(Name = "姓名")]
        public string Name { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        [Display(Name = "手机")]
        public string Mobile { get; set; }
        /// <summary>
        /// IP地址
        /// </summary>
        [Display(Name = "IP地址")]
        public string ClientIP { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        [Display(Name = "时间")]
        public DateTime CreateTime { get; set; }
    }
}
